home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 December / 2004-12 CHIP.iso / Narzedzia systemowe / Inno Setup 5.0.4 Beta / isetup-5.0.4-beta.exe / {app} / Examples / ISPPExample1.iss (.txt) < prev    next >
Encoding:
Inno Setup Script  |  2004-06-29  |  1.2 KB  |  35 lines

  1. ; -- ISPPExample1.iss --
  2. ; This script shows various basic things you can achieve using Inno Setup Preprocessor (ISPP) by Alex Yackimoff.
  3. ; To enable commented #define's, either remove the ';' or use ISPPCC with the /D switch.
  4. ; To download and install ISPP, get the Inno Setup QuickStart Pack from http://www.jrsoftware.org/isdl.php#qsp
  5. #pragma option -v+
  6. #pragma verboselevel 9
  7. #define Debug
  8. ;#define AppEnterprise
  9. #ifdef AppEnterprise
  10.   #define AppName "My Program Enterprise Edition"
  11. #else
  12.   #define AppName "My Program"
  13. #endif
  14. #define AppVersion GetFileVersion(AddBackslash(SourcePath) + "MyProg.exe")
  15. [Setup]
  16. AppName={#AppName}
  17. AppVerName={#AppName} version {#AppVersion}
  18. DefaultDirName={pf}\{#AppName}
  19. DefaultGroupName={#AppName}
  20. UninstallDisplayIcon={app}\MyProg.exe
  21. LicenseFile={#file AddBackslash(SourcePath) + "ISPPExample1License.txt"}
  22. VersionInfoVersion={#AppVersion}
  23. [Files]
  24. Source: "MyProg.exe"; DestDir: "{app}"
  25. #ifdef AppEnterprise
  26. Source: "MyProg.hlp"; DestDir: "{app}"
  27. #endif
  28. Source: "Readme.txt"; DestDir: "{app}"; \
  29.   Flags: isreadme
  30. [Icons]
  31. Name: "{group}\{#AppName}"; Filename: "{app}\MyProg.exe"
  32. #ifdef Debug
  33.   #expr SaveToFile(AddBackslash(SourcePath) + "Preprocessed.iss")
  34. #endif
  35.